<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCmeDataTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cme_data', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamp('date');
            $table->integer('open_interest');
            $table->integer('noncommercial_long');
            $table->integer('noncommercial_short');
            $table->integer('noncommercial_spreads');
            $table->integer('commercial_long');
            $table->integer('commercial_short');
            $table->integer('total_long');
            $table->integer('total_short');
            $table->integer('nonreportable_positions_long');
            $table->integer('nonreportable_positions_short');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cme_data');
    }
}
